import { http } from "@/utils/http";

//导入报告
export const importReport = data => {
  return http.request(
    "post",
    `/operation/api/v1/machine/annualVerify/importReport`,
    { data },
    {
      headers: {
        noLoading: true,
        "content-type": "application/x-www-form-urlencoded"
      }
    }
  );
};
//导入重复报告
export const importCoverReport = data => {
  return http.request(
    "post",
    `/operation/api/v1/machine/annualVerify/importReportNew`,
    { data },
    {
      headers: {
        noLoading: true,
        "content-type": "application/x-www-form-urlencoded"
      }
    }
  );
};
//校验是否重复
export const checkRepeat = (data?: object) => {
  return http.request("post", `/operation/api/v1/machine/annualVerify/queryAnnual`, {
    data
  });
};

//报表条件查询
export const queryConditionS = (data?: object) => {
  return http.request("post", `/operation/api/v1/machine/annualVerify/queryConditionS`, {
    data
  });
};

//校验报告查询
export const queryRecordList = (data?: object) => {
  return http.request("post", `/operation/api/v1/machine/annualVerify/queryListRecordBy`, {
    data
  });
};

//查询近三个月的校验数量
export const queryVerifyNumber = (data?: object) => {
  return http.request("post", `/operation/api/v1/machine/annualVerify/queryVerifyNumber`, {
    data
  });
};

//上传附件
export const uploadAttach = (data?: object) => {
  return http.request("post", `/operation/api/v1/machine/annualVerify/updateFile`, {
    data
  });
};
